package com.lqian.demo03.register;

import com.lqian.demo03.exception.IllegalNameException;

public class Test {
    public static void main(String[] args) {
        //创建UserService对象
        UserService userService = new UserService();
        //用户名和密码不再从控制台接收
        try {
            userService.register("jackson","1272743317@qqCOM");
        } catch (IllegalNameException e) {
            System.out.println(e.getMessage());
            //e.printStackTrace();
        }
    }

}
